<template>
  <div class="shop-header">
    <div class="shop-header-wrapp">
      <div class="shop-header-info">
        <div class="shop-header-name">
          <div class="shop-name">切果Now,超市</div>
          <p>
            <span class="shop-header-tag">蓝骑士专送</span>
            <span class="shop-header-time">约30分钟</span>
            <span class="shop-header-sales">月销500</span>
          </p>
          <p>
            <span class="shop-header-time">坏品包退</span>
            <span class="shop-header-time">极速退款</span>
            <span class="shop-header-sales">果蔬商超红包</span>
          </p>
        </div>
        <div class="shop-header-logo">
          <van-image
            width="60"
            height="60"
            src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
          />
        </div>
      </div>
      <!-- 公告 -->
      <div class="shop-header-notice">公告:收到哈佛那我呢看索尼大法,安工阿道夫水电费水电费水电费</div>
      <!-- 领券 -->
      <div class="shop-header-coupon">
        <p>
            <span>￥10</span>
            <span class="text">新客</span>
            <span class="btn">领</span>
        </p>
        <p>
            <span>￥15</span>
            <span class="text">满79可用</span>
            <span class="btn">领</span>
        </p>
      </div>
      <!-- 满减 -->
      <div class="shop-header-full-reduction">
        <span>满49减3</span>
        <span>满49减3</span>
        <span>满49减3</span>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
</script>
<style scoped lang="scss">
.shop-header {
  overflow: hidden;
  .shop-header-wrapp {
    margin: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
  }
  .shop-header-info {
    display: flex;
    overflow: hidden;
    .shop-header-name {
      flex: 1;
      .shop-name {
        font-size: 18px;
        height: 30px;
        line-height: 30px;
        font-weight: 600;
      }
      p {
        padding: 0;
        margin: 0;
        font-size: 12px;
        padding-bottom: 5px;
        .shop-header-tag {
          color: #009fcc;
          margin-right: 10px;
        }
        .shop-header-time {
          color: #666;
          margin-right: 10px;
        }
        .shop-header-sales {
          color: #666;
        }
      }
    }
    .shop-header-logo {
      width: 60px;
      height: 60px;
      border-radius: 6px;
      overflow: hidden;
    }
  }
  .shop-header-notice {
    height: 20px;
    line-height: 20px;
    font-size: 13px;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .shop-header-coupon{
    display: flex;
    font-size: 11px;
    p{
        margin: 0;
        padding: 0;
        margin-bottom: 8px;
        background: #E63F00 ;
        margin-right: 10px;
        height: 20px;
        line-height: 20px;
        color: #fff;
        border-radius: 3px;
        overflow: hidden;
        span{
            display: inline-block;
        }
        .text{
            padding: 0 5px;
        }
        .btn{
            background-color: #C63300 ;
            height: 100%;
            width: 20px;
            text-align: center;
        }
    }
  }
  .shop-header-full-reduction{
    display: flex;
    font-size: 11px;
    span{
        margin-right: 10px;
        padding: 2px 6px;
        color: #E63F00;
        border-radius: 3px;
        overflow: hidden;
        border: 1px solid #E63F00;
    }
  }
}
</style>
